﻿using DA;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace BL
{
    public class DonHangMoiBL
    {
        DonHangMoiDA donHangMoiDA;

        public DonHangMoiBL()
        {
            donHangMoiDA = new DonHangMoiDA();
        }

        public int taoDonHangMoi(string maDonHang, string maKhachHang, string diaChi, string ngayNhan, string ngayGiao)
        {
            return donHangMoiDA.taoDonHangMoi(maDonHang, maKhachHang, diaChi, ngayGiao, ngayNhan);
        }

        public void updateDonHangMoi(DataTable dt)
        {
            donHangMoiDA.donHangMoiAdapter.Update(dt);
        }

    }
}
